//
//  OrderModel.swift
//  TrafficViolation
//
//  Created by eaglelive on 2017/4/13.
//  Copyright © 2017年 eaglelive. All rights reserved.
//

import Foundation
import SwiftyJSON
class OrderModel: NSObject {
    
    var opUser:String = ""//处理人
    var ostatus:String = ""//订单状态
    var subTime:String = ""//提交时间
    var amount:String = ""//
    var totalAmount:String = ""//订单总额
    var samount:String = ""//服务费总额
    var isSelf:String = ""//是否是本人车
    var orderNo:String = ""//订单编号
    var opTime:String = ""//订单处理时间
    var carNum:String = ""//车牌
    var opUserName:String = ""//处理人
    var subUser:String = ""//提交人
    var subUserName:String = ""//提交人
    
    
    //初始化
    init(dict : JSON) {
        super.init()
        self.opUser = dict["opUser"].stringValue
        self.ostatus = dict["ostatus"].stringValue
        self.subTime = dict["subTime"].stringValue
        self.amount = dict["amount"].stringValue
        self.totalAmount = dict["totalAmount"].stringValue
        self.isSelf = dict["isSelf"].stringValue
        self.orderNo = dict["orderNo"].stringValue
        self.carNum = dict["carNum"].stringValue
        self.opUserName = dict["opUserName"].stringValue
        self.samount = dict["samount"].stringValue
        self.opTime = dict["opTime"].stringValue
        
    }
}

